package itheima.d02;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Test {
    public static void main(String[] args) {
        Map <String,Integer>map =new HashMap<>();
        map.put("张三",18);
        map.put("王五",19);
        map.put("赵六",20);
        map.put("胡一天",21);
        map.put("李云龙",18);


        Set<String> keys = map.keySet();

        keys.forEach(System.out::println);


        for (String key : keys) {
            Integer value = map.get(key);
            System.out.println(key+"="+value);
        }


    }
}
